import Mock from 'mockjs';

const data1 = [];
//数据模板'name|min-max':value
let row1 = {
    'string|1-9': 'string',
    'number|1-9': 1,
    'boolean|1-9': false,
    'undefined|1-9': undefined,
    'null|1-9': null,
    'object|1-9': { object1: 'object1', object2: 'object2', object3: 'object3' },
    'array|1-9': ['array1', 'array2'],
    'function|1-9': () => 'function'
};
data1.push(row1);
//定义模拟接口只能接收post请求，定义返回的数据为data1
Mock.mock('/Get/list1', 'get', data1);

